package spring;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component("zs")
@Data
public class Human {
    @Value("zs")
    String name;
    @Qualifier("myCar2")
    @Autowired
//    Car car;
    List<Car> cars;
   Map relatives;
}
